<template>
<div class="call" v-show="showFlag">
    <div class="phone">
        <p class="phoneTitle">分享提示</p>
        <p class="phoneNumber">请打开浏览器底部设置功能， 点击分享按钮，进行分享～</p>
        <div class="phoneBtn">
            <div class="btn" @click="cancelShow"><img src="https://cdn.92jiangbei.com/newjiangbei/img/method/icon-quxiao.png" /></div>
        </div>
    </div>
</div>
</template>

<script>
export default {
    props: {
        showFlag: {
            type: Boolean,
            default: false
        },
    },
    data() {
        return {
            isShow: true,
        }
    },
    mounted() {

    },
    methods: {
        backUp() {
            this.$router.go(-1);
            // 返回首页
            //  this.$router.push("/");
        },
        cancelShow() {
            // this.showFlag= false;
            this.$emit("showCancelShare", 2)
        },

    },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->

<style scoped>
.call {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* opacity:0.37920000000000004; */
    z-index: 10;
    overflow: hidden;
    position: fixed;
    top: 0;
}

.phone {
    width: 78.66vw;
    padding: 4.26vw;
    box-sizing: border-box;
    background-color: white;
    border-radius: 2.13vw;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    top: 25%;

    transform: translateX(-50%);
    color: #34343E;
    font-size: 4vw;
}

.phoneTitle {
    text-align: center;
    margin-bottom: 2.67vw;
}

.phoneNumber {
    width: 52.33vw;
    padding-top: 2.26vw;
    border-top: 1px solid #E0E0E0;
    margin: 0 auto;
}

.phoneBtn {
    display: flex;
    justify-content: space-between;
    position: absolute;

    bottom: -35%;
    left: 50%;
    transform: translateX(-50%);
}

.phoneBtn .btn {}

.btn img {
    width: 7.33vw;
    height: 7.33vw;
    vertical-align: middle;
    margin-right: 3.2vw;
}
</style>
